SET(LIBDWGET_SRC
	libdwget.c
)

ADD_LIBRARY(dwget SHARED ${LIBDWGET_SRC})
TARGET_LINK_LIBRARIES(dwget -lcurl -ldhash)
INCLUDE_DIRECTORIES(../include)
INCLUDE_DIRECTORIES(/usr/include/dNux)

INSTALL(TARGETS
		dwget
	LIBRARY DESTINATION
		${DESTDIR}/usr/lib
	LIBRARY PERMISSIONS
		OWNER_READ OWNER_WRITE
		WORLD_READ
)
		


